package com.woniu.guoguo.service.impl;

import com.alipay.api.AlipayApiException;
import com.woniu.guoguo.bean.AlipayBean;
import com.woniu.guoguo.config.AlipayUtil;
import com.woniu.guoguo.service.IPayService;
import org.springframework.stereotype.Service;

/**
 * @author： Micsal
 * @create-time： 2020.11.05 19:44
 * @version： 1.0
 * @description： desc
 */
/* 支付服务 */
@Service(value = "alipayOrderService")
public class PayServiceImpl implements IPayService {
    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return AlipayUtil.connect(alipayBean);
    }
}